package com.mao.service;

import com.mao.entity.Account;
import com.mao.myreposity.AccountRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/*
user：mao
data：2021/6/14
note：
*/
@Service
public class AccountService {

    @Autowired
    AccountRepository repository;

    public void saveAccount(Account account){
        repository.save(account);
    }
    public Account findByIdAndName(Integer id,String name){
        return  repository.findByIdAndName(id,name);
    }

    public Account findBySQL(){
        return  repository.findBySQL();
    }


}
